import java.util.Scanner;

public class Test {
    public static void jiSuan(int num) {
        while(num != 0) {
            System.out.print(num%10+" ");
            num = num/10;
        }
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入一个整数:");
        int num = sc.nextInt();
        jiSuan(num);
    }

}
